package main

import (
	"ginTemplate/config"
	"ginTemplate/controller"
	"ginTemplate/cor"

	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()
	r.Use(cor.Cors())
	controller.GetRouter(r)
	r.Run(":" + config.GetConfig("server.port"))
}
